<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="div1">
			<img id='imgs' src="imgs/1/1.jpg" />
		</div>
		<button type="button" onclick="bb(event)">开始</button>
	</body>
	<script type="text/javascript">

		function bb(event){
			var a=1;
			var settime =setInterval(function(){
				var imgs=document.getElementById('imgs')
				a++;b'b
				imgs.src="imgs/1/"+a+".jpg"
				if(a>=9){
					a=0;
				}
			},1000);
		}
	</script>
</html>